// 封装基于localStorage的存取删方法
const TOKENKEY = 'token-key'
export function setToken (token) {
  return window.localStorage.setItem(TOKENKEY, token)
}

export function getToken () {
  return window.localStorage.getItem(TOKENKEY)
}

export function removeToken () {
  return window.localStorage.removeItem(TOKENKEY)
}
